<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%--
  Created by IntelliJ IDEA.
  User: mingz
  Date: 2018/5/1
  Time: 13:52
  To change this tgiftlate use File | Settings | File Tgiftlates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="/static/plugins/easyui/themes/bootstrap/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/plugins/easyui/themes/icon.css">
    <script type="text/javascript" src="/static/plugins/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="/static/plugins/easyui/jquery.easyui.min.js"></script>
    <!--引入中文包-->
    <script type="text/javascript" src="/static/plugins/easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="/static/js/index.js"></script>

    <script type="text/javascript" src="/static/js/gift.js"></script>
</head>
<body>
<%--员工表格--%>
<table id="gift_datagrid">
</table>

<%--按钮--%>
<div id="gift_toolbar">
    <a class="easyui-linkbutton" iconCls="icon-add" data-options="plain:true" data-cmd="add"/>新增</a>
    <a class="easyui-linkbutton" iconCls="icon-edit" data-options="plain:true" data-cmd="edit" />编辑</a>
    <a id="delete_btn" class="easyui-linkbutton" iconCls="icon-remove" data-options="plain:true" data-cmd="delete" />删除</a>

    <%--高级查询--%>
    <!--多条件组合查询-->
    <input class="easyui-textbox" prompt="姓名/编号" id="keyword" />
    <a class="easyui-linkbutton" iconCls="icon-mysearch" plain="true"  data-cmd="query">查询</a>
    <%--上传表单--%>
    <%--待开发
    <form method="post" enctype="multipart/form-data" action="/gift/importXls.do">
        <input type="file" name="file"/>
        <input type="submit" value="导入"/>
    </form>--%>
</div>
<%--表单按钮--%>
<div id="btn">
    <a class="easyui-linkbutton" iconCls="icon-add" data-options="plain:true" data-cmd="saved"/>保存</a>
    <a class="easyui-linkbutton" iconCls="icon-edit" data-options="plain:true"  data-cmd="cancel">取消</a>
</div>

<%--弹出窗口--%>
<div id="gift_dialog" class="easyui-dialog" data-options="title:'编辑',iconCls:'icon-myedit',closed:true">
    <!--创建表单-->
    <form id="gift_form" method="post">
        <table align="center" style="margin-top:15px">
            <ul class="shareul col-xs-8">
                <li>
                    <input type="hidden" id="gift_id" name="id" value="">
                    <input type="hidden" name="sv_giftpicture" id="sv_giftpicture" value="">
                    <label class="labelinfo">礼品编号<i class="colorff">*</i></label>
                    <input type="text" class="form-control" name="sn" id="sv_giftnumber" value="" placeholder="输入编号">
                </li>
                <li>
                    <label class="labelinfo">礼品名称<i class="colorff">*</i></label>
                    <input type="text" class="form-control" name="name" id="sn" value="" placeholder="输入名称">
                </li>
                <li>
                    <label class="labelinfo">所需积分<i class="colorff">*</i></label>
                    <input type="number" class="form-control" name="inte" id="inte" value="" placeholder="输入积分">
                </li>
                <li>
                    <label class="labelinfo">礼品数量<i class="colorff">*</i></label>
                    <input type="number" class="form-control" name="endNumber" id="endNumber" value="" placeholder="输入数量">
                </li>
                <li>
                    <label class="labelinfo">礼品单位<i class="colorff">*</i></label>
                    <select name="until" id="until" class="form-control"><option value="份">份</option><option value="瓶">瓶</option><option value="打">打</option><option value="碟">碟</option></select>
                </li>
            </ul>
        </table>
        <div class="leftupcontent col-xs-4">
            <!--上传成功之后图片显示出来-->
            <img class="newmemberphoto" style="display:none;" id="giftpictureImg" src="" alt="">
            <!--上传成功之后图片显示出来-->

            <div class="takePictures">
                <span>本地上传</span>
                <input class="file Picturesfile" type="file" name="" id="" value="">
            </div>
        </div>
    </form>
</div>
<div id="form_btns">
    <a   class="easyui-linkbutton" plain="true" data-options="iconCls:'icon-save'" data-cmd="remove">删除</a>
    <a   class="easyui-linkbutton" plain="true" data-options="iconCls:'icon-cancel'" data-cmd="cancell">取消</a>
</div>
<div id="delete_dialog">
    <form method="post" id="delete_form">
        <table align="center">
            <%-- <input type="hidden" name="id" id="id"/>--%>
            <tr>
                <td>确认删除</td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
